<%@ page import="csu.web.mypetstore.domain.Account" %>
<%@ include file="../common/top.jsp"%>

<div id="BackLink"><a href="MainForm">
    Return to Main Menu
</a></div>
<div id="Catalog">
    <form action="changeAccountForm" method="post">
        <%
            Account account = (Account) session.getAttribute("loginAccount");
        %>
        <table>
            <tr>
                <td>Username:</td>
                <td>
                    <input type="text" name="Number" value="<%= account.getUsername()%>"/>
                </td>
            </tr>
            <tr>
                <td>Card Number:</td>
                <td>
                    <input type="text" name="Number" value="<%= account.getPhone()%>"/>
                </td>
            </tr>

            <tr>
                <td>First name:</td>
                <td>
                    <input type="text" name="FirstName" value="<%= account.getFirstName()%>"/>
                </td>
            </tr>
            <tr>
                <td>Last name:</td>
                <td>
                    <input type="text" name="LastName" value="<%= account.getLastName()%>"/>
                </td>
            </tr>
            <tr>
                <td>Address 1:</td>
                <td>
                    <input type="text" size="40" name="Address1" value="<%= account.getAddress1()%>"/>
                </td>
            </tr>
            <tr>
                <td>Address 2:</td>
                <td>
                    <input type="text" size="40" name="Address2" value="<%= account.getAddress2()%>"/>
                </td>
            </tr>
            <tr>
                <td>City:</td>
                <td>
                    <input type="text" name="City" value="<%= account.getCity()%>"/>
                </td>
            </tr>
            <tr>
                <td>State:</td>
                <td>
                    <input type="text" size="4" name="State" value="<%= account.getState()%>"/>
                </td>
            </tr>
            <tr>
                <td>Zip:</td>
                <td>
                    <input type="text" size="10" name="Zip" value="<%= account.getZip()%>"/>
                </td>
            </tr>
            <tr>
                <td>Country:</td>
                <td>
                    <input type="text" size="15" name="Country" value="<%= account.getCountry()%>"/>
                </td>
            </tr>
            <tr>
                <input type="submit" value="Change">
            </tr>
        </table>

    </form></div>

<%@ include file="../common/bottom.jsp"%>